package com.mini.framework.communicate.mina;

public class Launcher {
	
	
	/**
	 * 程序入口.
	 * 
	 * @param arg
	 */
	public static void main(String arg[]){
		Mini mini = new Mini();
		ServerConfig configs = new ServerConfig();
		Config config=new Config();
		config.setServerPort(2010);
		config.setCodeFactory(new DefaultCodeFactory());
		config.setHandlerFactory(new DefaultHandleFactory());
		configs.addConfig(config);
		mini.start(configs);
	}

}
